package com.wolfpire.news.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.wolfpire.news.dao.NewDao;
import com.wolfpire.news.service.NewService;
import com.wolfpire.notice.dao.NoticeDao;
import com.wolfpire.notice.service.NoticeService;
import com.wolfpire.system.common.Page;
import com.wolfpire.system.common.base.dao.IBaseHibernateDao;
import com.wolfpire.system.common.base.dao.impl.BaseHibernateDao;
import com.wolfpire.system.common.base.service.impl.BaseHibernateService;
import com.wolfpire.system.model.New;
import com.wolfpire.system.model.Notice;
import com.wolfpire.system.model.Profession;
import com.wolfpire.system.model.Subject;
@Service("newService")
public class NewServiceImpl extends BaseHibernateService<New, Long> 
	implements NewService {
	
	@Resource private NewDao newDao;
	
	public List<New> list(New entity) {
		// TODO Auto-generated method stub
		return null;
	}

	public New getByTitle(String title) {
		// TODO Auto-generated method stub
		return null;
	}

	public Page<New> setPageDataList(Page<New> page, New filterNew) {
		// TODO Auto-generated method stub
		return this.newDao.findNews(page, filterNew);
	}

	public List<New> list(int num) {
		// TODO Auto-generated method stub
		return this.newDao.list(num);
	}

	public New findFrontNew(long id) {
		// TODO Auto-generated method stub
		return this.newDao.findFrontNew(id);
	}

	public New findNextNew(long id) {
		// TODO Auto-generated method stub
		return this.newDao.findNextNew(id);
	}

	public New currentNew(long id) {
		// TODO Auto-generated method stub
		return this.newDao.currentNew(id);
	}

	public boolean isPropertyUnique(String propertyName, Object propertyValue,
			Long id) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	protected IBaseHibernateDao<New, Long> getEntityDao() {
		// TODO Auto-generated method stub
		return this.newDao;
	}

}
